home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMSVGElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  124 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMSVGElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMSVGElement_h__
  6. #define __gen_nsIDOMSVGElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMElement_h__
  10. #include "nsIDOMElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMSVGSVGElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMSVGElement */
  21. #define NS_IDOMSVGELEMENT_IID_STR "e0be7cbb-81c1-4663-8f95-109d96a60b6b"
  22.  
  23. #define NS_IDOMSVGELEMENT_IID \
  24.   {0xe0be7cbb, 0x81c1, 0x4663, \
  25.     { 0x8f, 0x95, 0x10, 0x9d, 0x96, 0xa6, 0x0b, 0x6b }}
  26.  
  27. class NS_NO_VTABLE nsIDOMSVGElement : public nsIDOMElement {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSVGELEMENT_IID)
  31.  
  32.   /* attribute DOMString id; */
  33.   NS_IMETHOD GetId(nsAString & aId) = 0;
  34.   NS_IMETHOD SetId(const nsAString & aId) = 0;
  35.  
  36.   /* readonly attribute nsIDOMSVGSVGElement ownerSVGElement; */
  37.   NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) = 0;
  38.  
  39.   /* readonly attribute nsIDOMSVGElement viewportElement; */
  40.   NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMSVGELEMENT \
  46.   NS_IMETHOD GetId(nsAString & aId); \
  47.   NS_IMETHOD SetId(const nsAString & aId); \
  48.   NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement); \
  49.   NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMSVGELEMENT(_to) \
  53.   NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
  54.   NS_IMETHOD SetId(const nsAString & aId) { return _to SetId(aId); } \
  55.   NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) { return _to GetOwnerSVGElement(aOwnerSVGElement); } \
  56.   NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) { return _to GetViewportElement(aViewportElement); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMSVGELEMENT(_to) \
  60.   NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  61.   NS_IMETHOD SetId(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
  62.   NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerSVGElement(aOwnerSVGElement); } \
  63.   NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewportElement(aViewportElement); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMSVGElement : public nsIDOMSVGElement
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMSVGELEMENT
  74.  
  75.   nsDOMSVGElement();
  76.  
  77. private:
  78.   ~nsDOMSVGElement();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMSVGElement, nsIDOMSVGElement)
  86.  
  87. nsDOMSVGElement::nsDOMSVGElement()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMSVGElement::~nsDOMSVGElement()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* attribute DOMString id; */
  98. NS_IMETHODIMP nsDOMSVGElement::GetId(nsAString & aId)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMSVGElement::SetId(const nsAString & aId)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* readonly attribute nsIDOMSVGSVGElement ownerSVGElement; */
  108. NS_IMETHODIMP nsDOMSVGElement::GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* readonly attribute nsIDOMSVGElement viewportElement; */
  114. NS_IMETHODIMP nsDOMSVGElement::GetViewportElement(nsIDOMSVGElement * *aViewportElement)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* End of implementation class template. */
  120. #endif
  121.  
  122.  
  123. #endif /* __gen_nsIDOMSVGElement_h__ */
  124.